package cn.darkhorse.ticket.constants;

/**
 * @description:
 * @author: mr.wang
 * @time: 2024/1/9 15:34
 */
public class TicketConstants {

	/**
	 * 单据字段
	 */
	public static final String FIELD_ID = "id";
	public static final String FIELD_CODE = "code";
	public static final String FIELD_NAME = "name";
	public static final String FIELD_AUTOMATICALLY= "is_automatically";
	/**
	 * 单据类型
	 */
	public static final String BUSINESS_TYPE_CPFL = "CPFL";
	public static final String BUSINESS_TYPE_CP = "CP";
	public static final String BUSINESS_TYPE_GX = "GX";
	public static final String BUSINESS_TYPE_GYLX = "GYLX";
	public static final String BUSINESS_TYPE_IN = "IN";
	public static final String BUSINESS_TYPE_OUT = "OUT";
	//单位
	public static final String BUSINESS_TYPE_DW = "DW";
	//仓库
	public static final String BUSINESS_TYPE_CK = "CK";
	//客户
	public static final String BUSINESS_TYPE_KH = "KH";
	//不良品
	public static final String BUSINESS_TYPE_BLP = "BLP";
	//废料
	public static final String BUSINESS_TYPE_FL = "FL";
	//生产计划
	public static final String BUSINESS_TYPE_SCJH = "SCJH";
	//工单
	public static final String BUSINESS_TYPE_GD = "GD";

	public static final Integer YES = 1;
	public static final Integer NO = 0;

	/**
	 * 计划状态 0未生成工单1部分生成2生成完毕3已关闭
	 */
	public static final Integer PLAN_STATUS_NOT_CREATE = 0;
	public static final Integer PLAN_STATUS_PART_CREATE = 1;
	public static final Integer PLAN_STATUS_ALL_CREATE = 2;
	public static final Integer PLAN_STATUS_CLOSE = 3;

	/**
	 * 任务权限人表
	 */
	public static final String TICKET_TASK_INSPECTION_PERSON = "ticket_task_inspection_person";
	public static final String TICKET_TASK_REPORT_PERSON = "ticket_task_report_person";


	/**
	 * 计划产品生成工单状态 0 未生成 1已生成 2已关闭
	 */
	public static final Integer PLAN_PRODUCT_STATUS_NOT_CREATE = 0;
	public static final Integer PLAN_PRODUCT_STATUS_CREATE = 1;
	public static final Integer PLAN_PRODUCT_STATUS_CLOSE = 2;

	/**
	 * 工单状态 0未开始1进行中2已结束3已取消
	 */
	public static final Integer TICKET_STATUS_NOT_START = 0;
	public static final Integer TICKET_STATUS_ONGOING = 1;
	public static final Integer TICKET_STATUS_END = 2;
	public static final Integer TICKET_STATUS_CANCEL = 3;

}
